package io;

import view.Designer;
import model.Prescription;/** * A class to encapsulate the export to CSS functionality of the designer * @author Daniel Bond, Mohammed Abdullah, Gideon Pyzer * */
public class ExportCSS {		/**	 * Exports a prescription with a specified filename	 * @param filename the filename to export as.	 */
	public static void export(String filename){		Designer designer = Designer.getInstance();
		cssParser.getInstance().export(Prescription.getInstance(), filename);		designer.showMessageDialog("Prescription exported to CSS successfully");
		designer.update();
	}
}
